﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Theoreme.Teaching.AOP.Sample01
{



    public class Test_ExceptionHandling
    {
        public static void Run()
        {
            try
            {
                BusinessMethod();
            }
            catch ( Exception e )
            {
                Console.WriteLine(e.ToString());
            }
        }

        [WrapException]
        static void BusinessMethod()
        {
            int i = 0;
            int k = 1;
            int l = k/i;
        }
    }
}
